import request from '@/utils/request'

export default {
  getAnnouncementList(params) {
    return request.get('/announcements/list', { params })
  },
  publishAnnouncement(data) {
    return request.post('/announcements/publish', data)
  },
  editAnnouncement(data) {
    return request.put('/announcements/edit', data)
  },
  deleteAnnouncement(id) {
    return request.delete(`/announcements/delete/${id}`)
  }
}